/**
 * 
 */
package javapop.framework.generic;

import javapop.framework.generic.tool.GrammarVisitor;

/**
 * @author hakim
 *
 */
public class GRefParser implements GParser {

	private String ref;
	
	/**
	 * @param string 
	 * 
	 */
	public GRefParser(String string) {
		ref = string;
	}
	
	public String getRef() {
		return ref;
	}

	@Override
	public <T,R,E extends Exception> T visit(GrammarVisitor<T,R, E> g) throws E {
		return g.visit(this);
	}
	
	@Override
	public String toString() {
		return "<"+ref+">";
	}

}
